import { TOGGLE_COLLAPSE_SIDEBAR } from '@/store/action-types'
const initState = {
  sidebarCollapsed: false
}
export default function app(state = initState, { type, data }) {
  switch (type) {
    case TOGGLE_COLLAPSE_SIDEBAR:
      return {
        sidebarCollapsed: data
      }
    default:
      return state
  }
}
